﻿using System;
using DomainExample.DomainModel.PersonModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DomainExample.Repository.Tests.PersonRepositoryTests
{
    [TestClass]
    public sealed class PersonRepositoryGetForSearchTests : PersonRepositoryTests
    {
        [TestInitialize]
        public void SetUp()
        {
            CreateSchema();
        }

        [TestCleanup]
        public void TearDown()
        {
            DestroySchema();
        }

        [TestMethod]
        [TestCategory("Database Integration")]
        [ExpectedException(typeof(NotImplementedException))]
        public void PersonRepositoryGetForSearcWithValidSearchExpectException()
        {
            var personSearch = PersonSearch.NewPersonSearch();
            Target.GetForSearch(personSearch);
        }
    }
}
